<div class="comment_block" id="comment_id_<?php echo $comment['id'] ?>">
    <div class="comment_date">
        <?php echo $comment['days_diff'] ?>
    </div>
    <div class="comment_block_top_bar">
        <div class="user_pic">
            <?php $local_path = sfConfig::get('sf_web_dir') . '/uploads/profile_pictures/' . $comment['username'] . '_thumb.jpg' ?>
            <?php $path = get_resized_image('32', '32', $local_path) ?>
            <img width="32" src="<?php echo $path ?>"/>
        </div>
        <div class="user_name">
            <?php echo $comment['user_name'] ?>
        </div>
        <div class="comment_rating_wrap">
            <div class="comment_rating" data-did="<?php echo $comment['id'] ?>" data-rating="<?php echo $comment['rating'] ?>"></div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="comment_body">
        <?php echo strip_tags($comment['comment_text']) ?>
    </div>
</div>
<?php if(isset($_COOKIE['rated_comment_'.$comment['id']])){ ?> 
    <script>
        $(document).ready(function(){  
            $('#comment_id_'+'<?php echo $comment['id'] ?> .comment_rating').raty('readOnly', true);
        });
    </script>
<?php } ?>